package com.kjc.demo.netty.ieee754;


public class HexBinaryAdapterTest {
	public static void main(String[] args) {
        //变量初始化
        int value1 = 20;
        int value2 = 0x7f800000;
        int value3 = 0xff800000;

        //显示value1，value2，value3值
        System.out.println("value1: " + value1);
        System.out.println("value2: " + value2);
        System.out.println("value3: " + value3);


        //表示的float值 
        //位表示
        float result1 = Float.intBitsToFloat(value1);

        //表示的float值 
        //位表示
        float result2 = Float.intBitsToFloat(value2);

        //表示的float值 
        //位表示
        float result3 = Float.intBitsToFloat(value3);

        //显示result1，result2，result3值
        System.out.println("Float.intBitsToFloat(value1): " + result1);
        System.out.println("Float.intBitsToFloat(value2): " + result2);
        System.out.println("Float.intBitsToFloat(value3): " + result3);
    }
}
